package standino.velocity.db.db2;

public class Column extends DB2Object {
	private boolean allowNull = true;

	private boolean pk =false;

	/**
	 * Returns the value of allowNull.
	 */
	public boolean getAllowNull() {
		return allowNull;
	}

	/**
	 * Sets the value of allowNull.
	 *
	 * @param allowNull
	 *            The value to assign allowNull.
	 */
	public void setAllowNull(boolean allowNull) {
		this.allowNull = allowNull;
	}


	public String getColumnDef(){
        return this.getName()+"   " + this.getType()+"   "+((allowNull)?"": "NOT NULL");
    }

	public boolean isPk() {
		return pk;
	}

	public void setPk(boolean pk) {
		this.pk = pk;
	}

}
